<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<title>Music Store 后台订单管理</title>


<div id="content-title">
	<h3>订单详情</h3>
</div>
<div id="content-main">
	<p>
		<a href="hom/orde_management">返回</a>
	</p>
	<p style="text-align: center;">明细信息</p>
<table id="album-list">
	<tr>
		<td>订单编号</td>
		<td>${order.id}</td>
		<td>订单日期</td>
		<td><fmt:formatDate pattern="yyyy-MM-dd"
				value="${order.orderDate}" /></td>
	</tr>
	<tr>
		<td>用户</td>
		<td>${order.user.name}</td>
		<td>收货人</td>
		<td>${order.consignee}</td>
	</tr>
	<tr>
		<td>联系电话</td>
		<td>${order.phone}</td>
		<td>邮箱</td>
		<td>${order.email}</td>
	</tr>
	<tr>
		<td>送货地址</td>
		<td colspan="3">${order.address}</td>
	</tr>
</table>
<hr />
<p style="text-align: center;">明细信息</p>
<table id="album-list">
	<tr>
		<th>唱片</th>
		<th>单价</th>
		<th>数量</th>
		<th>小计</th>
	</tr>
	<c:forEach var="i" items="${orderDetails}">
		<tr>
			<td>${i.album.title }</td>
			<td>${i.album.price }</td>
			<td>${i.quantity }</td>
			<td>${i.subtotal}</td>
		</tr>
	</c:forEach>
	<tr>
		<td colspan="3">总计</td>
		<td>总价格:${order.totalPrice}</td>
		</tr>
	</table>
</div>


